#include"Shm.hpp"
#include"namedPipe.hpp"
int main()
{
    Shm shm(gpathname,gproj_id,gUser);
    shm.Zero();
    char* addr=(char*)shm.AttachShm();
    char ch ='A'; 
    NamePiped fifo(com_path,User);
    fifo.OpenForWrite();
    while(ch<='Z')
    {
        addr[ch-'A']=ch;
        ch++;
        sleep(2);
        std::string tenp="weakup";
        fifo.WriteNamedPipe(tenp);
        sleep(3);
    }
    shm.DetachShm(addr);
    return 0;
}